from time import sleep

from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.get("https://mail.163.com/")

iframe = driver.find_element(By.XPATH, value="/html/body/div[2]/div[3]/div[1]/div/div[4]/div[1]/div[1]/iframe")
driver.switch_to.frame(iframe)
driver.find_element(By.NAME, value="email").send_keys("werunYu")
driver.find_element(By.NAME, value="password").send_keys("yuwenqi@320911")
driver.find_element(By.ID, value="dologin").click()


driver.quit()

